package com.lanyam.travel.base.dao;


import com.lanyam.travel.base.entity.OrderRefundDetails;
import com.lanyam.travel.base.entity.vo.OrderRefundDetailsVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;


@Mapper
public interface OrderRefundDetailsMapper extends BaseMapper<OrderRefundDetails>  {

    /**
     * 分页查询
     */
    Page<OrderRefundDetailsVo> getPage(@Param("page") IPage<OrderRefundDetailsVo> page, @Param("map") Map<String, Object> map);

    /**
     * 删除数据
     */
    void delById(String id);

    @Select("select * from order_refund_details where refund_id = #{refundId} order by require_time desc")
	List<OrderRefundDetails> getLatestRefundDeatail(String refundId);
}